# # import threading
# # import time
# #
# #
# # # 模拟银行业务办理
# # def yewubanli(name):
# #     semaphore.acquire()
# #     time.sleep(3)
# #     print("{0}正在办理业务".format(time.strftime('%Y-%m-%d %H:%M:%S')))
# #
# #     semaphore.release()
# #
# #
# # if __name__ == '__main__':
# #
# #     # 同时只有5个人办理业务
# #     semaphore = threading.BoundedSemaphore(5)
# #     thread_list = []
# #     for i in range(12):
# #         t = threading.Thread(target=yewubanli, args=(i,))
# #         thread_list.append(t)
# #
# #     for thread in thread_list:
# #         thread.start()
# #
# #     for thread in thread_list:
# #         thread.join()
# #
# #
# import datetime
# import random
# import uuid
#
# uid = str(uuid.uuid1())
#
# inttime = int(datetime.datetime.now().strftime('%Y%m%d%H%M%S%f'))
#
# uuid = ''.join(uid.split('-')) +str(random.randrange(0,inttime)).zfill(20)
# print(uuid)
#
# # 为函数添加一个统计运行时长的功能
# import time
#
#
# def how_much_time(func):
#     def inner():
#         t_start = time.time()
#         func()
#         t_end = time.time()
#         print("一共花费了{0}秒时间".format(t_end - t_start, ))
#
#     return inner
#     # 将增加的新功能代码以及被装饰函数运行代码func()一同打包返回，返回的是一个内部函数，这个被返回的函数就是装饰器
#
#
# def sleep_5s():
#     time.sleep(2)
#     print("%d秒结束了" % (2,))
#
#
# def sleep_6s():
#     time.sleep(6)
#     print("%d秒结束了" % (6,))
#
# #
# # aaas = how_much_time(sleep_5s)
# # aaas()
# # 因为sleep_5s函数的功能就是睡5秒钟，虽然增加了统计运行时间的功能，但是他本身功能没变(还是睡5秒钟)，所以仍然用原来函数名接收增加功能了的自己
# # sleep_6s = how_much_time(sleep_6s)
#
# # 5秒结束了
# # 一共花费了5.014161109924316秒时间
# # 6秒结束了
# # 一共花费了6.011810302734375秒时间
#
# # import time
# # timestamp1 = time.time()  # 获取当前时间戳
# # time.sleep(2)  # 等待2秒钟
# # timestamp2 = time.time()  # 获取当前时间戳
# # diff_seconds = timestamp2 - timestamp1
# # print("时间戳相差：", diff_seconds, "秒")
#
# def func_args(args):
#     def func(function_name):
#         def func_in():
#             print('--记录日志-args=%s'%args)
#             function_name()
#         return func_in
#     return func
# @func_args('haha')
# def test():
#     print('---test---')
#
# test()


import datetime

now = datetime.datetime.now()
formatted_date = now.strftime("%Y-%m-%d %H:%M:%S.000")
formatted_date1 = now.strftime("%Y-%m-%d 00:00:00.000")

print("当前时间：", formatted_date)
print("当前时间：", formatted_date1)